<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!-- Modal -->
<div class="modal fade" id="exampleModal02" tabindex="-1" aria-labelledby="exampleModalLabel02" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel02">提示</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body" id="is_null_modal">

        未输入内容请检查
      </div>
      <div class="modal-footer">
        <button type="button" onclick="modalClose()" class="btn btn-primary">确定</button>
      </div>
    </div>
  </div>
</div>

<script>

  function setErrModalMessage(title,message) {
    document.getElementById("exampleModalLabel02").innerText = title;
    document.getElementById("is_null_modal").innerText = message;
    $("#exampleModal02").modal("show")
  }

  function modalClose() {
    $("#exampleModal02").modal("hide")
    window.history.back(-1)
  }
</script>

</body>
</html>